package com.example.config.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2016/6/21.
 */
@Service
public class ReceiverService {

    @RabbitListener(queues = "another-queue")
    public void receiveMessage(String message){
        System.err.println("Received Foo<" + message + ">");
    }
}
